<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-12-23 15:58:06
 * @Last Modified time: 2022-12-23 16:17:27
 */
namespace app\common\model\store;

use frank\base\BaseModel;
use frank\traits\ModelTrait;
use frank\utils\helper\ArrayHelper;
use app\common\enum\EnumFactory;

/**
 * 商品规格模版
 * Class GoodsSpecTemplatesModel
 * @package app\common\model\store
 */
class GoodsSpecTemplatesModel extends BaseModel
{
    use ModelTrait;

    /**
     * 数据表主键
     */
    protected $pk = 'id';

    /**
     * 模型名称
     */
    protected $name = 'store_goods_spec_templates';

	protected $json = ['attrs'];

	public function getAttrsAttr($value){
		return ArrayHelper::objectToArray($value);
	}
}